#!/bin/bash

# 简洁版本
echo "请输入书名："
read book_name

if [ -n "$book_name" ]; then
    directory="${book_name}/$(date +"%y-%m-%d")"
    mkdir -p "$directory" && echo "目录 '$directory' 创建成功！"
else
    echo "错误：书名不能为空！"
fi
